function errors=svm_classify(data,svm)

y_p=sign(svm_discrim_func(data.X,svm));
errors=length(find(y_p~=data.y));